range: Deprecate detail strings in class struct
authorBenjamin Otte <otte@redhat.com>
Tue, 18 Nov 2014 17:49:17 +0000 (18:49 +0100)
committerBenjamin Otte <otte@redhat.com>
Tue, 25 Nov 2014 18:19:12 +0000 (19:19 +0100)
... and stop setting them.

gtk/gtkrange.c
gtk/gtkrange.h
gtk/gtkscale.c

index 35cc499ea87c4deab7ef647292c2c604b52bef38..fdda1daaf59ae18ad7c53b03e81c336822b545a4 100644 (file)
@@ -335,9 +335,6 @@ gtk_range_class_init (GtkRangeClass *class)
   class->move_slider = gtk_range_move_slider;
   class->change_value = gtk_range_real_change_value;
 
-  class->slider_detail = "slider";
-  class->stepper_detail = "stepper";
-
   /**
    * GtkRange::value-changed:
    * @range: the #GtkRange that received the signal
index 24a7ea1413c3fb105e961e15cd2ed75dabe6e913..ba0cf3de043cff1c9f0cf59997f4b4e21bac9d8a 100644 (file)
@@ -59,8 +59,8 @@ struct _GtkRangeClass
   GtkWidgetClass parent_class;
 
   /* what detail to pass to GTK drawing functions */
-  gchar *slider_detail;
-  gchar *stepper_detail;
+  G_GNUC_DEPRECATED gchar *slider_detail;
+  G_GNUC_DEPRECATED gchar *stepper_detail;
 
   void (* value_changed)    (GtkRange     *range);
   void (* adjust_bounds)    (GtkRange     *range,
index aa84e4d4b65949d22cb484a57f99ff3b63e68dc9..75bf4d278a3e74117e0f74b2abfe5fab3e93fee4 100644 (file)
@@ -266,7 +266,6 @@ gtk_scale_class_init (GtkScaleClass *class)
   widget_class->get_preferred_width = gtk_scale_get_preferred_width;
   widget_class->get_preferred_height = gtk_scale_get_preferred_height;
 
-  range_class->slider_detail = "Xscale";
   range_class->get_range_border = gtk_scale_get_range_border;
 
   class->get_layout_offsets = gtk_scale_real_get_layout_offsets;